import java.util.Scanner
val scanner = Scanner(System.`in`)
class Station(var x:Int, var y:Int){}
class Chess(var station:Station,var type:String)
var count=1

class Player_manerger{
    fun game(){
        println("请输入棋盘的大小")
        var size=scanner.nextInt()
        println("请输入你要玩几子棋")
        var point=scanner.nextInt()
        var board=Broad(size)
        var station1=Station(0,0)
        var station2=Station(1,1)
        var chess1=Chess(station1,"⊙")
        var chess2=Chess(station2,"●")
        var player1=Player("张三",chess1)
        var player2=Player("李四",chess2)
        var ruler=Ruler(board,point,player1,player2)
        while(true){
            board.printBoard()
            if(count%2==1){
                player1.luozi()
                if(ruler.accept(player1)){
                    count++
                }
            }else if(count%2==0){
                player2.luozi()
                if(ruler.accept(player2)){
                    count++
                }
            }
            ruler.win()
            count++
        }
    }
}
fun main(){
    var game=Player_manerger()
    game.game()
}